<template>
	<view>
		<view class="useJfItem spaceBet" :class="[hasShadowFlag ? 'hasShadow' : '']" @tap="openJfDkPop">
			<view class="useTit">使用积分(共{{totalJf}}积分)</view>
			<view class="toSel">
				<text :class="[currSelPrice == '去选择' ? '' : 'hasSel']">{{currSelPrice}}</text>
				<text class="iconfont icon-gengduo" v-if="isShowFlag"></text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"use-jf",
		props:{
			totalJf:Number,
			currSelPrice:String,
			isShowFlag:{
				type:Boolean,
				default:true
			},
			hasShadowFlag:{
				type:Boolean,
				default:true
			}
		},
		methods:{
			openJfDkPop(){
				this.$emit('openJfDkPop');
			}
		}
	}
</script>

<style lang="scss">
	.useJfItem{
		width: 100%;
		height: 90rpx;
		line-height: 90rpx;
		align-items: center;
		font-size: 28rpx;
		color: $pss-text-color3;
		background: #fff;
		border-bottom: 1rpx solid #eee;
		.useTit{
			margin-left: 30rpx;
		}
		.toSel{
			margin-right: 30rpx;
			.hasSel{
				color: $pss-color-red;
			}
			.icon-gengduo{
				color: $pss-text-colora;
				font-size: 26rpx;
			}
		}
		&.hasShadow{
			box-shadow: 0 -8rpx 10rpx rgba(0,0,0,.03);
		}
	}
</style>
